package com.fs.service.impl;

import com.fs.mapper.UserMapper;
import com.fs.pojo.User;
import com.fs.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Version:1.0
 * @Description: TODO(一句话描述该类的功能)
 * @Date: 2024/9/25 19:27
 * @Author: love you qxl
 */
@Service
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;

    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    @Override
    public User userLogin(User user) {
        return userMapper.userLogin(user);
    }

    @Override
    public List<User> queryAll() {
        return userMapper.selectList(null);
    }
}
